package com.nft.service.school.feign;

import com.nft.service.school.req.SchoolConsumeReq;
import com.nft.service.school.resp.SchoolConsumeResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "nft-service-school",contextId="consumeClient", path = "/consumeClient")
public interface ISchoolConsumeClient {
    @RequestMapping(value = "/getList", method = RequestMethod.POST)
    public List<SchoolConsumeResp> getList(@RequestBody SchoolConsumeReq query);

    @RequestMapping(value = "/getUserAppPage", method = RequestMethod.POST)
    public List<SchoolConsumeResp> getPage(@RequestBody SchoolConsumeReq query);

    @RequestMapping(value = "/updateConsumeInfo", method = RequestMethod.POST)
    public Boolean updateConsumeInfo(@RequestBody SchoolConsumeReq query);
}
